users = [{
    "name": "小红",
    "password": "123",
    "status": True
}, {
    "name": ""
            "",
    "password": "456",
    "status": True
}, {
    "name": "jack",
    "password": "789",
    "status": False
}]
notAllowed = ["jack"]

inputUser = None

inputName = input("请输入用户名")
for user in users:
    userName = user['name']
    if userName and userName == inputName:
        inputUser = user
        continue

if not inputUser:
    print("用户名输入错误")

inputPassword = input("请输入密码")
if inputUser['password'] != inputPassword:
    print("密码输入错误")

if not inputUser['status']:
    print("状态错误")
print("登录成功")
